﻿namespace Web.Control.Member.Public
{
    using System;
    using System.Data;
    using System.Drawing;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI.WebControls;
    using System.Web.UI.HtmlControls;
    //using System.Text.RegularExpressions;    
    using System.Collections;    
    using System.Collections.Generic;
    using Lx.Web.Common.UI;
    using Lx.Web.Common.ControlsUI;
    using Model.WWW_User.User;

    public class PubPro : BaseControl
    {
                
        protected override void OnLoad(EventArgs e)
        {
            if (string.IsNullOrEmpty(Request["MemberNo"]))
            {
                Response.End();
                return;
            }
            string memberno = Request["MemberNo"];
            if (BLF.WWW_User.Users.User.IsTeacher(memberno))
            {
                Server.Transfer(string.Format("/public/TProfile.htm?MemberNo={0}", memberno), false);
            }
            else {
                Server.Transfer(string.Format("/public/profiles.htm?MemberNo={0}", memberno), false);
            }
        }
    }
}

